package com.chixing.day10_hashcode_exception.word;


public class Position {
    private int posId;
    private String psoName;
    private Company company;
    private int posSalaryMin;
    private int posSalaryMax;
    private String posCity;
    private String posDegree;

    public Position(){}
    public Position(int posId, String psoName, Company company, int posSalaryMin, int posSalaryMax, String posCity, String posDegree) {
        this.posId = posId;
        this.psoName = psoName;
        this.company = company;
        this.posSalaryMin = posSalaryMin;
        this.posSalaryMax = posSalaryMax;
        this.posCity = posCity;
        this.posDegree = posDegree;
    }

    public int getPosId() {
        return posId;
    }

    public void setPosId(int posId) {
        this.posId = posId;
    }

    public String getPsoName() {
        return psoName;
    }

    public void setPsoName(String psoName) {
        this.psoName = psoName;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public int getPosSalaryMin() {
        return posSalaryMin;
    }

    public void setPosSalaryMin(int posSalaryMin) {
        this.posSalaryMin = posSalaryMin;
    }

    public int getPosSalaryMax() {
        return posSalaryMax;
    }

    public void setPosSalaryMax(int posSalaryMax) {
        this.posSalaryMax = posSalaryMax;
    }

    public String getPosCity() {
        return posCity;
    }

    public void setPosCity(String posCity) {
        this.posCity = posCity;
    }

    public String getPosDegree() {
        return posDegree;
    }

    public void setPosDegree(String posDegree) {
        this.posDegree = posDegree;
    }

    @Override
    public String toString() {
        return "Position{" +
                "posId=" + posId +
                ", psoName='" + psoName + '\'' +
                ", company=" + company +
                ", posSalaryMin=" + posSalaryMin +
                ", posSalaryMax=" + posSalaryMax +
                ", posCity='" + posCity + '\'' +
                ", posDegree='" + posDegree + '\'' +
                '}';
    }
}
